<?php


namespace App\Libary\Constellation;


use Illuminate\Support\Arr;

class Constellation
{
    /**
     * 星座列表
     * @var array
     */
    private static $items = [
        '0' => '水瓶座',
        '1' => '双鱼座',
        '2' => '白羊座',
        '3' => '金牛座',
        '4' => '双子座',
        '5' => '巨蟹座',
        '6' => '狮子座',
        '7' => '处女座',
        '8' => '天秤座',
        '9' => '天蝎座',
        '10' => '射手座',
        '11' => '摩羯座'
    ];

    /**
     * 返回星座列
     * @return array
     */
    public static function view(){
        return self::$items;
    }

    /**
     * 获取星座列
     * @param int $id
     * @return mixed
     */
    public static function get(int $id) {
        return Arr::get(self::$items, $id, '未知');
    }
}